package com.example.study.service;

import com.example.study.model.Goods;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 商品服务实现类
 *
 * @author duckquan
 */
@Service
public class GoodsServiceImpl implements GoodsService {

    @Override
    public List<Goods> goodsList() {
        //假装查询了数据库
        List<Goods> goodsList = new ArrayList<>();
        goodsList.add(new Goods("MT001", "产品线1号", "MT001202404151125", "测试商品-001"));
        goodsList.add(new Goods("MT002", "产品线2号", "MT002202404151135", "测试商品-002"));
        goodsList.add(new Goods("MT003", "产品线3号", "MT002202404151145", "测试商品-003"));
        return goodsList;
    }

}
